import http from 'utils/http'
import * as type from './type'

const actionCreators = {
    getCards () {
        return async dispatch => {
            const result =  await http({
                url:'/tuan-wys/data.json'
            })
            const action = {
                type:type.GETMESSAGE,
                payload:result.data
            }
            dispatch(action)
        }
    }
}

export default actionCreators